Issues in Modeling Locking Performance

نویسنده

  • Y. C. Tay
چکیده

This expository article examines the issues that arise when modeling the effect of locking on the performance of transactions in a database system. Perhaps it will interest some performance analysis to see how issues similar to those they have encountered are addressed by others for a different problem; perhaps it will help some graduate student who is about to embark on a modeling project. The issues discussed include the decoupling of data contention and resource contention, the role of simulation, the reliability of intuition, and the techniques for handling stochastic dependencies. The article concludes with a suggestion that performance models be divided into two classes. The models in one class concentrate on studying the fundamental aspects, while those in the other concentrate on answering engineering questions. Such a differentiation in the role of performance models could remove some confusion over what to expect from these models, and how to use their results. A database is a collection of interrelated data. A database management system is a database together with a suite of programs for organizing, updating and querying the database. Typically, users access a database through application programs that run on top of the database management system [KS]. Examples of such applications are airline reservation and automatic teller systems. Database management systems have three important features [B2]: persistence − if a program modifies some data, the changes remain after the program has terminated; sharing − more than one program can concurrently access the data; and reliability − the data must remain correct despite hardware and software failures. In manipulating data, a program may cause the database to be temporarily incorrect. For instance, in transferring an amount of money from an account A to another account B, the database would be incorrect in the interval after the amount is deducted from A and before it is added to B (since that amount is missing from the total of the two accounts for the duration). The persistence of changes and this possibility of a temporary inconsistency lead to the requirement that either all changes made by the program up to its commitment (i.e. successful termination) is reflected in the database, or none at all. This is the concept of the transaction. Since a database system allows several transactions to be active at the same time, the actions of transactions on shared data are interleaved. To prevent this interleaving from producing inconsistent data, …

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Nonlinear optimized Fast Locking PLLs Using Genetic Algorithm

Abstract— This paper presents a novel approach to obtain fast locking PLL by embedding a nonlinear element in the loop of PLL. The nonlinear element has a general parametric Taylor expansion. Using genetic algorithm (GA) we try to optimize the nonlinear element parameters. Embedding optimized nonlinear element in the loop shows enhancements in speed and stability of PLL. To evaluate the perform...

متن کامل

Fairlocks A High Performance Fair Locking Scheme

Over the past several decades, much research has been done in the area of modeling, simulating, and measuring the performance of locking primitives under conditions of low and high contention and with attention to memory locality of the locking data structures. Most of the existing locking primitives are not fair with respect to lock grants and can cause lock starvation among CPUs during high c...

متن کامل

The Effect of Integration of Role-Modeling and Narration Methods on the Midwifery Students’ Performance in Professional Ethics

Introduction: Midwifery care based on the professional ethics leads to mothers’ increased prosperity and satisfaction. This study was performed to compare the effect of integration of two teaching approaches, role-modeling and narration methods, on the midwifery students’ performance in professional ethics in Qom University of Medical Sciences. Methods: This quasi-experimental before- and afte...

متن کامل

Performance Enhancement of Read-only Transactions Using Speculative Locking Protocol

A read-only transaction (ROT) does not modify any data. The main issues regarding processing ROTs are correctness, data currency and performance. Two-phase Locking (2PL) protocol is widely used for concurrency control with serializabilty as correctness criteria. Even though 2PL processes ROTs correctly with no data currency related issues, the performance deteriorates as data contention increas...

متن کامل

cient Locking for Shared Memory Database Systems 1

Signi cant performance advantages can be realized by implementing a database system on a shared memory multiprocessor. An e cient implementation of a lock manager is a prerequisite for e cient transaction processing in multiprocessor database systems. To this end, we advocate adopting an autonomous locking strategy. In autonomous locking, transactions acquire and release locks via operations on...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2009